package com.chushouya.order.dto.api.clerk.action;

import com.chushouya.order.constants.ClerkOrderActionEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@ApiModel("业务员完成订单")
@Data
public class ClerkCompleteAction extends ClerkBaseAction {

    public ClerkCompleteAction() {
        super.setOrderAction(ClerkOrderActionEnum.COMPLETE);
    }

    @ApiModelProperty("订单ID")
    @NotNull(message = "订单ID不能为空")
    private Long orderId;

    @ApiModelProperty("支付方式")
    private Integer payType;

    @ApiModelProperty("收成价格")
    private BigDecimal completePrice;

    @ApiModelProperty("备注")
    private String paymentRemark;

    @ApiModelProperty("结款账户json字符串,{\"accountType\": \"支付宝\",\"accountName\": \"1232324434\",\"accountUserName\": \"\"}")
    private String settleAccount;

}
